/**
 * Created by JasonChou on 16/6/6.
 */

import {pageType} from  '../constant'

export const badges = [
  {
    title: '服务保障计划',
    id: 'bao',
    icon: 'img_badge_bao',
    page: {
      url: 'signTattoo',
      type: pageType.NATIVE
    }
  },
  {
    title: '手艺认证',
    icon: 'img_badge_v',
    id: 'handicraft',
    page: {
      url: 'skillApprove',
      type: pageType.NATIVE
    }
  },
  {
    title: '实名认证',
    id: 'realName',
    icon: 'img_badge_realname',
    page: {
      url: 'realName',
      type: pageType.NATIVE
    }
  }

];

export const isBadgeOn = function (id, userInfo) {
  return userInfo[id];
};
